package old

import (
	"fmt"
	"model"
	"net/http"
	"service"
	"time"

	"github.com/gin-gonic/gin"
)

func main1() {

	fmt.Println("server starting....")
	router := gin.Default()

	router.GET("/", func(c *gin.Context) {
		var notice *model.Notice = new(model.Notice)
		notice.Id = 10
		notice.Title = "this's a first test of golang"
		//		noticeService := new(service.NoticeService)
		//		noticeService.AddNotice(notice)
		//
		c.String(http.StatusOK, "Hello World")
	})
	router.Run(":8000")

}
